<script setup>
import { onMounted } from 'vue';
import CardBox1 from './components/CardBox1.vue'
import CardBox2 from './components/CardBox2.vue'
import CardBox3 from './components/CardBox3.vue'
import { useRouter } from 'vue-router'

const router = useRouter()

onMounted(() => {
  const routerList = router.getRoutes() ?? []
  router.push(routerList?.[0]?.path ?? '/')
})
</script>

<template>
  <div class="com-full hp" v-show="false">
    <div class="ts-content">
      <div class="card card-1">
        <CardBox1 />
      </div>
      <div class="card card-2">
        <CardBox2 />
      </div>
      <div class="card card-3">
        <CardBox3 />
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.hp {
  position: relative;

  .ts-content {
    width: calc(100% + 22px + 22px);
    height: calc(100% + 22px + 22px);
    position: absolute;
    left: -22px;
    top: -22px;
    background-color: #F7F8FA;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    .card {
      background-color: #fff;
      border-radius: 4px;
    }

    .card-1 {
      width: 60%;
      height: 30%;
      background: #ffffff;
    }

    .card-2 {
      height: 30%;
      flex: 1;
      overflow: hidden;
    }

    .card-3 {
      height: calc(70% - 20px);
      width: 100%;
    }
  }
}
</style>